﻿using FigureDraw.Diagram;
using FigureDraw.Graphic;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FigureDraw.Shapes.ActivityShape
{
    class EndActivity : MyShape
    {
        double width;
        double height;

        public EndActivity(double x, double y, double width, double height)
            : base(x, y)
        {
            this.width = width;
            this.height = height;
        }

        public override void Draw(CommonGraphic graphic)
        {
            graphic.DrawEllipse(x, y, width, height);
            graphic.DrawText("End", 12, x + width / 2 - 15, y + height / 2 - 5);
        }

        public override MyShape Clone(BlockDiagram diagram)
        {
            throw new NotImplementedException();
        }
    }
}
